# Copyright (C) Nicola Bizzoca   2006/2007  <hannibal_smith@users.sourceforge.net>
# Copyright (C) Simone Economo   2006/2007  <ekoes@users.sourceforge.net>
# 
#    This file is part of Absynth-FTP.
#
#    Absynth-FTP is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 3 of the License, or
#    (at your option) any later version.
#
#    Absynth-FTP is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gtk
from engine import Widgets
import conf

class UI(Widgets):
    def __init__(self):
        Widgets.__init__(self)
        self.tabLabel = 'Benvenuti in Absynth-FTP!'
        self.label = gtk.Label(self.tabLabel)
        logo = gtk.Image()
        logo.set_from_file(conf.DATA_DIR +'/img/logo_medium.png')
        logo.show()
        label2 = gtk.Label('Per iniziare clicca su "Connetti"')
        vbox = gtk.VBox()
        vbox.pack_start(self.label, False, True, 0)
        vbox.pack_start(logo, True, True, 0)
        vbox.pack_start(label2, False, True, 0)
        self.widget = gtk.ScrolledWindow()
        self.widget.add_with_viewport(vbox)
        self.widget.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
        self.widget.show_all()